monitoring-tools-ux (LC)

(0 reviews)

TM-Update ChangeRequest or ServiceRequest in SFDC

Updation of ChangeRequest or Servicerequest in SFDC

To update service request or change request in Salesforce from Toolmaster.

[PATCH]

URL
https://nonprod.lc.esb.cloud.lla.com/test/monitoring-tools-ux-lc/monitoring-tools-ux/v1/{businessId}/troubleTicket/{id}
url Param
nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code, identifying the business unit. Expected:CW,BO,SX,SA,SE,MF,CO,SV,GT,HN,DOY
idstringSalesforce record type idY
nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction. Note - Mule default behavior creates a sample x-correlation-id field if value is not passed from client, API will use this value in case value is not passed in API request syntax: correlationId: uuid:cwc--, example: correlationId: {guid}:cwc--qaY
Salesforce tenants
SF Environment to ConnectSF Instance
QAcwc--qa
UATcwc--uatsfdc
Productioncwc--prod

Body definitions

nametypedescriptionrequired
@typestringDefault: TroubleTicketY
namestringSubject of the TicketY
descriptionstringDescription of incidentY
ticketTypestringType of ticket. Expected: For SR: ServiceRequest. For CR: EmergencyChangeRequest or StandardChangeRequest or NormalChangeRequestY
prioritystringPriority of Ticket.Y
severitystringCategory of Change request.Y
statusenumStatus of Ticket, Allowed Values:Y
note[].idstringWorklog IdY
note[].textstringWorklog commentY
note[].characteristic[0].namestringHardcode:TypeY
note[].characteristic[0].valuestringTicket typeY
note[].characteristic[0].namestringHardcode:DetailsY
note[].characteristic[0].valuestringDetail of worklogY
note[].@typestringDefault: NoteY
attachment[].idstringWorklogId to which attachment associatedY
attachment[].mimeTypestringType of fileY
attachment[].namestringname of the fileY
attachment[].contentstringContent of file and it should be in base64 formatY
attachment[].attachmentTypestringDefault: WorklogAttachmentsY
attachment[].@referredTypestringDefault: AttachmentY
relatedParty[].idstringAccount Id of User for SRY
relatedParty[].namestringContact Id of User for SRY
relatedParty[].rolestringDefault: User for SRY
relatedParty[].@referredTypestringDefault: Individual for SRY
relatedParty[].idstringId of Supervisor for CRY
relatedParty[].rolestringDefault: Supervisor for CRY
relatedParty[].@referredTypestringDefault: Individual for CRY
relatedParty[].idstringOwner IdY
relatedParty[].rolestringDefault: OwnerY
relatedParty[].@referredTypestringDefault: IndividualY
relatedParty[].idstringReviewer IdY
relatedParty[].rolestringDefault: ReviewerY
relatedParty[].@referredTypestringDefault: IndividualY
relatedEntity[].idstringDefalut: 'sf'Y
relatedEntity[].rolestringDefault: MonitoringTicketY
relatedEntity[].namestringDefault: InstalledSoftwareY
relatedEntity[].@referredTypestringDefault: ResourceY
relatedEntity[].idstringSalesforce ObjectId of Asset, please repeat the object based on assetsY
relatedEntity[].rolestringDefault: MonitoringTicketY
relatedEntity[].namestringDefault: AssetIdY
relatedEntity[].@referredTypestringDefault: ResourceY
troubleTicketCharacteristic[].namestringname of the characteristicY
troubleTicketCharacteristic[].valuestringvalue of characteristicY

Characteristics

nametypedescriptionrequired for CRrequired for SR
caseOriginstringorigin of ticket example: Email,PhoneNY
actionTypestringAction Type. Ex: Internal,Proactive,ReactiveYY
SR_TypestringService Request type. Ex: Technical,non-technical etcNY
categorystringCategory of SR ticketNY
affectedDatestringAffected DateNY
reportedDatestringReported DateNY
symptomstringSymptoms of issueNY
resolutionSummarystringResolved SummaryNY
resolvedBystringBy whom ticket got resolvedNY
endDatestringEnd date by when the ticket should resolveNY
idstringId of the taskYY
subjectstringSubject of TaskYY
descriptionstringDescription of TaskYY
taskOwnerIdstringCreator of the taskYY
taskPrioritystringPriority of taskYY
taskTypestringType of taskYY
taskStatusstringStatus of taskYY
wholdstringTo whom to contactYY
taskApprovalStatusstringApproval status of taskyY
responseDatestringDate when response received on the taskYY
lastTaskstringBoolean to determine if its the last task for CR or SRYY
taskManagementstringManagement of task depending on categoryYY
taskReasonstringTask creation reasonYY
taskEventResultsstringTask outcomeYY
taskRequeststringTo open a taskYY
taskSolutionstringSolution to complete a taskYY
taskResolvedDatestringResolution date on which task is resolvedYY
taskCompletionDatestringCompletion date of taskYY
titlestringTask notes titleYY
contentstringTask notes contentYY
urgencystringUrgency of the ticketYN
changeOriginstringOrigin of ticketYN
riskLevelstringLevel of riskYN
impactstringImpact of issueYN
changeReasonstringChange ReasonYN
businessJustificationstringBusiness JustificationYN
estimatedStartTimestringEstimated Start time of ticketYN
failureProbabilitystringProbability of failureYN
riskDescriptionstringDescription of riskYN
massiveChangeRequeststringTell whether ticket is massive ticket or notYN
downTimestringDowntime due to issueYN
estimatedEndTimestringEstimated end time of ticketYN
serviceImpactstringImpact by the serviceYN
listofStandardChangesstringList of Standard ChangeYN
clientApprovalstringClient Approval of ticketYN
resultstringResultYN
resolutionstringResolution of ticketYN
CABAssessmentstringCAB AssessmentYN
clientApprovalstringClient Approval of ticketYN
clientAuthDecisionstringClient Authorization DecisionYN
evidenceDeliveryDatestringEvidence delivery dateYN
changeApprover1stringChange Approver detailsYN
changeApprover2stringChange Approver detailsYN
changeApprover3stringChange Approver detailsYN
changeApprover4stringChange Approver detailsYN
changeApprover5stringChange Approver detailsYN
timeOutOfServicestringOut of serviceYN
changeImpactsMoreThanOneServicestringhow many services impactedYN
technicalComplexitystringTechinical complexityYN
riskOfFinesPenaltiesstringPenalties for the riskYN
usersAffectedstringHow many users affectedYN
previouslyExecutedstringIssue executed previously or notYN
unscheduledDisruptionstringthat this change may generate unscheduled service disruption to be implementedYN
usersClassificationstringClassification of users benefited by changeYN
typeOfServicestringType of ServiceYN
Sample Service Request
{
  "description": "Ticket Description",
  "ticketType": "Service Request",
  "name": "Test Caribbean Countries Account",
  "priority": "High",
  "status": "closed",
  "note": [
    {
      "id": "1",
      "text": "This is quite important, please approach me as soon as possible",
      "characteristic": [
        {
          "name": "Type",
          "value": "APPNOTE"
        },
        {
          "name": "Details",
          "value": "Roter issue"
        }
      ],
      "@type": "Note"
    }
  ],
"attachment": [
    {
            "id": "1",
            "mimeType": "image/png",
            "name": "ModemImage",
            "content": "<base64 content>",
            "attachmentType": "WorklogAttachments",
            "@referredType": "Attachment"
          }
    ],
  "relatedParty": [
    {
      "id": "0tA8B0000004Nsd",
      "name": "0tA8B0000004ab",
      "role": "User",
      "@referredType": "Individual"
    },
    {
      "id": "0tA8B0000004Nsd",
      "role": "Owner",
      "@referredType": "Individual"
    }
  ],
  "relatedEntity": [
    {
      "id": "sf",
      "role": "MonitoringTicket",
      "name": "InstalledSoftware",
      "@referredType": "Resource"
    },
    {
      "id": "0tA8B0000004NgGUAU",
      "role": "MonitoringTicket",
      "name": "AssetId",
      "@referredType": "Resource"
    },
    {
      "id": "0y4B0000007NgHGDGH",
      "role": "MonitoringTicket",
      "name": "AssetId",
      "@referredType": "Resource"
    }
  ],
  "troubleTicketCharacteristic": [
    {
      "name": "caseOrigin",
      "value": "Service Order Form"
    },
     {
      "name": "actionType",
      "value": "Proactive"
    },
    {
      "name": "SR_Type",
      "value": "Technical"
    },
    {
      "name": "category",
      "value": "Password reset"
    },
    {
      "name": "affectedDate",
      "value": "2026-04-04"
    },
    {
      "name": "reportedDate",
      "value": "2026-04-04"
    },
    {
      "name": "symptom",
      "value": "Blinking"
    },
    {
      "name": "resolutionSummary",
      "value": "Issue Resolved"
    },
    {
      "name": "resolvedBy",
      "value": "Rajini"
    },
    {
      "name": "endDate",
      "value": "2026-04-04"
    },
    {
      "name": "task",
      "valueType": "array",
      "value": [
        {
          "id":"00Tdn00000DIOyrEAH",
          "subject": "",
          "description": "",
          "taskOwnerId": "0ny79000000KyqlAAC",
          "taskPriority": "High",
          "taskType": "Assistance",
          "taskStatus": "Pending Third-Party Infrastructure",
          "whold": "0ny79000000KyqlAAC",
          "taskApprovalStatus": "Rejected",
          "responseDate": "2026-04-04",
          "lastTask": "Marked",
          "taskManagement": "Managed Security",
          "taskReason": "Rejected",
          "taskEventResults": "Rejected",
          "taskRequest": "Rejected",
          "taskSolution": "Rejected",
          "taskResolvedDate": "2026-04-04",
          "title": "Case Follow-up Notes",
          "content": "sjdgkjskldgjklsj"
        }
      ]
    }
  ],
  "@type": "TroubleTicket"
}
Sample Change Request
{
  "description": "Ticket Description",
  "ticketType": "ChangeRequest-Emergecy|Standard|Normal",
  "name": "Test Caribbean Countries Account",
  "priority": "High",
  "status": "closed",
  "severity":"Major",
  "note": [
    {
      "id":"1",
      "text": "This is quite important, please approach me as soon as possible",
      "characteristic": [
        {
          "name": "Type",
          "value": "APPNOTE"
        },
        {
          "name": "Details",
          "value": "Roter issue"
        }
      ],
      "@type": "Note"

    }
  ],
  "attachment": [
    {
            "id": "1",
            "mimeType": "image/png",
            "name": "ModemImage",
            "content": "<base64 content>",
            "attachmentType": "WorklogAttachments",
            "@referredType": "Attachment"
          }
  ],
  "relatedParty": [
    {
      "id": "0tA8B0000004Nsd",
      "role": "Supervisor",
    "@referredType": "Individual"
    },
   {
      "id": "0tA8B0000004Nsd",
      "role": "Owner",
    "@referredType": "Individual"
    },
  {
      "id": "0tA8B0000004Nsd",
      "role": "Reviewer",
    "@referredType": "Individual"
    }

  ],
  "relatedEntity": [
    {
      "id": "sf",
      "role": "MonitoringTicket",
      "name": "InstalledSoftware",
      "@referredType": "Resource"
    },
    {
      "id": "0tA8B0000004NgGUAU",
      "role": "MonitoringTicket",
      "name": "AssetId",
      "@referredType": "Resource"
    },
    {
      "id": "0y4B0000007NgHGDGH",
      "role": "MonitoringTicket",
      "name": "AssetId",
      "@referredType": "Resource"
    }
  ],
  "troubleTicketCharacteristic": [
    {
      "name": "urgency",
      "value": "Critical"
    },
    {
      "name": "changeOrigin",
      "value": "Email"
    },
    {
      "name": "riskLevel",
      "value": "Critical"
    },
    {
      "name": "actionType",
      "value": "Proactive"
    },
    {
      "name": "impact",
      "value": "Critical"
    },
    {
      "name": "changeReason",
      "value": "Improvement"
    },
    {
      "name": "riskDescription",
      "value": ""
    },
    {
      "name": "businessJustification",
      "value": "Issue Resolved"
    },
    {
      "name": "estimatedStartTime",
      "value": ""
    },
    {
      "name": "failureProbability",
      "value": "Critical"
    },
    {
      "name": "massiveChangeRequest",
      "value": ""
    },
   {
      "name": "downTime",
      "value": ""
    },
   {
      "name": "estimatedEndTime",
      "value": ""
    },
   {
      "name": "serviceImpact",
      "value": "Yes"
    },
  {
      "name": "result",
      "value": ""
    },
   {
      "name": "listofStandardChanges",
      "value": ""
    },
  {
      "name": "resolution",
      "value": ""
    },
   {
      "name": "clientApproval",
      "value": ""
    },

  {
      "name": "CABAssessment",
      "value": ""
    },
  {
      "name": "clientAuthDecision",
      "value": ""
    },
    {
      "name": "evidenceDeliveryDate",
      "value": ""
    },
    {
      "name": "finalReviewedDate",
      "value": ""
    },
    {
      "name": "ChangeApproverDetails",
      "valueType": "object",
      "value":
        {
          "changeApprover1":"Required to operate (Requerido para operar)",
          "changeApprover2": "Between 4 and 6 hours (Entre 4 y 6 horas)",
          "changeApprover3": "Yes (Si)",
          "changeApprover4": "Medium (Medio)",
          "changeApprover5": "Yes (Si)"
        }
    },
    {
      "name": "riskImpactAnalysis",
      "valueType": "object",
      "value":
        {
          "typeOfService":"Required to operate (Requerido para operar)",
          "timeOutOfService": "Between 4 and 6 hours (Entre 4 y 6 horas)",
          "changeImpactsMoreThanOneService": "Yes (Si)",
          "technicalComplexity": "Medium (Medio)",
          "riskOfFinesPenalties": "Yes (Si)",
          "usersAffected": "Site (Localidad)",
          "previouslyExecuted": "It has not been executed before (No se ha ejecutado antes)",
          "unscheduledDisruption": "Yes (Si)",
          "usersClassification": "Normal (Normales)"
        }
    },
    {
      "name": "task",
      "valueType": "array",
      "value": [
        {
          "taskId":"00Tdn00000DIOyrEAH",
          "subject": "",
          "description": "",
          "taskOwnerId": "0ny79000000KyqlAAC",
          "taskPriority": "High",
          "taskType": "Assistance",
          "taskStatus": "Pending Third-Party Infrastructure",
          "whold": "0ny79000000KyqlAAC",
          "taskApprovalStatus": "Rejected",
          "responseDate": "2026-04-04",
          "lastTask": "Marked",
          "taskManagement": "Managed Security",
          "taskReason": "Rejected",
          "taskEventResults": "Rejected",
          "taskRequest": "Rejected",
          "taskSolution": "Rejected",
          "taskResolvedDate": "2026-04-04",
          "title": "Case Follow-up Notes",
          "taskCompletionDate":"",
          "content": "sjdgkjskldgjklsj"
        }
      ]
    }
  ],
  "@type": "TroubleTicket"
}
Response
{
    "id": "500dn00000M6j5rAAB", // Service Request Number from salesForce
    "troubleTicketCharacteristic":[
        {
        "name": "TaskId",
        "value": "00Tdn00000CsOuVEAV"
    }
      ]
}

Reviews